import request from '@/utils/request'

// 查询证件照信息列表
export function listDocuments(query) {
  return request({
    url: '/employee/documents/list',
    method: 'get',
    params: query
  })
}

// 查询证件照信息详细
export function getDocuments(documentId) {
  return request({
    url: '/employee/documents/' + documentId,
    method: 'get'
  })
}

// 新增证件照信息
export function addDocuments(data) {
  return request({
    url: '/employee/documents',
    method: 'post',
    data: data
  })
}

// 修改证件照信息
export function updateDocuments(data) {
  return request({
    url: '/employee/documents',
    method: 'put',
    data: data
  })
}

// 删除证件照信息
export function delDocuments(documentId) {
  return request({
    url: '/employee/documents/' + documentId,
    method: 'delete'
  })
}
